package com.xixibaby.validator;

import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import java.util.List;

@Configuration
@ConditionalOnProperty(value = "system.enable-auto-valid",havingValue = "true")
public class ValidatorAutoConfiguration {

    @Bean
    public ResolverBeanPostProcessor beanPostProcessor(){
        return new ResolverBeanPostProcessor();
    }
}
